<template>
	<div>
		APP Test
		<div>
			<button @click="genNext">Next</button>
			<button @click="genLast">Last</button>
			<button @click="genReturn">Return</button>
			<button @click="genThrow">Throw</button>
		</div>
	</div>
</template>

<script>
	export default {
		'name': 'view-other_static-app_test',
		data() {
			return {
				'gnrt': null
			};
		},
		'methods': {
			genNext() {
				console.log(this.gnrt.next(Math.round(Math.random() * 100)));
			},
			genLast() {
				console.log(this.gnrt.last(Math.round(Math.random() * 100)));
			},
			genReturn() {
				console.log(this.gnrt.return(Math.round(Math.random() * 100)));
			},
			genThrow() {
				console.log(this.gnrt.throw(Math.round(Math.random() * 100)));
			}
		},
		created() {
			this.gnrt = this.$makeGenerator(param => console.log(param));
		}
	};
</script>

<style scoped>
</style>
